Add-PSSnapin Microsoft.SharePoint.Powershell
$personalSites = get-spsite | where {$_.RootWeb.WebTemplate -eq "SPSPERS"}
foreach ($site in $personalSites) {Enable-SPFeature -Identity "XYZ.MySiteFeatureStaple_XYZ_MySiteBrand" -Url $site.Url}